// 引入文件
require("../../assets/css/index.less")
require("./circle.less");
require("../../assets/fonts/iconfont.css");

// 2.引入工具函数utils
const dom = require('../../utils/dom')
const https = require("../../utils/https")
const local = require("../../utils/local")


// Dom加载
dom.ready(function () {
    dom.bMenu("circle")

    https.get('/api/train/courseList',function(res){
        let {errno,data}=res;
        console.log(data);
        if(errno==0){
            dom.getEle('#pic').src='http://fitness.h5.itsource.cn:3701'+data[3].imgurl
        }
    })

    dom.addEvent('#addBtn',function(){
        location.href='addcircle.html'
    })

})